package com.yunc.user.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunc.common.core.result.R;
import com.yunc.user.sys.entity.SysDept;

import java.util.List;

public interface ISysDeptService extends IService<SysDept> {

    List<SysDept> queryDeptList(String name);

    String selectMaxCode(String parentId);

    /**
     * 保存
     */
    R saveDept(SysDept dept);

    /**
     * 更新
     */
    R updateDept(SysDept dept);

    List<String> listDeptByCode(List<String> deptCodeList);

    List<SysDept> queryUserDeptList(String userId);

    void listShop();
}
